package com.xqboss.apps.dto.category;

import com.xqboss.apps.dto.PageDto;
import com.xqboss.apps.enums.category.CategoryNftTypeEnum;
import com.xqboss.common.annotation.EnumValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * 分类列表vo
 *
 * @author xqboss
 * @date 2024-2-22
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("藏品分类Dto")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CategoryDto extends PageDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("是否显示(1-显示 0-不限制)")
    private Integer online;

    @ApiModelProperty("分类类型（1藏品 2装备 3箱子）")
    @NotNull(message = "请输入分类类型")
    private CategoryNftTypeEnum nftType;

    @ApiModelProperty("是否分页（true-分页，默认true）")
    private Boolean isPage = true;

}
